package com.dodo.blog.ui.component.composite;

import com.dodo.blog.ui.component.container.Panel;

/**
 * @author <a href="mailto:pohorelec@comvai.com">Jozef Pohorelec</a>
 */
public class AsideContentPanel
        extends Panel
{
    public AsideContentPanel()
    {
        setClassName( "aside-content" );

        Panel asideLeft = new Panel();
        asideLeft.setClassName( "aside-left" );
        add( asideLeft );

        Panel asideRight = new Panel();
        asideRight.setClassName( "aside-right" );
        add( asideRight );

        asideLeft.add( new AsidePanel( AsidePanel.Type.MOST_VIEWED ) );
        asideLeft.add( new AsidePanel( AsidePanel.Type.BEST_RATED ) );
        asideLeft.add( new AsidePanel( AsidePanel.Type.RECENT_POSTS ) );
        asideRight.add( new AsidePanel( AsidePanel.Type.CATEGORIES ) );
        asideRight.add( new AsidePanel( AsidePanel.Type.TAGS ) );
    }
}
